﻿using SqlSugar;
using System;
using System.Linq;
using System.Text;

namespace DongFangGuoKai.WMSPlatform.Domain.Model
{
    ///<summary>
    ///
    ///</summary>
    public partial class TStocktakingOrders
    {
           public TStocktakingOrders(){


           }
        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>       
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string Name {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string OrderSn {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           public int WarehouseId {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string WarehouseCode {get;set;}

           /// <summary>
           /// Desc:用于仓位code
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string WarehouseName {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? AreaId {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string AreaCode {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string AreaName {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string storeLocationRemark {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? BillType {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string Erpcode {get;set;}

        /// <summary>
        /// Desc:单据状态：0-创建;4-已完成;5已回传
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int Status {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? MaterialId {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string MaterialName {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string BatchNo {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           public int PlanType {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           public int StocktakeWay {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? MaxLocationCount {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? Granularity {get;set;}

        /// <summary>
        /// Desc: 当前字段意思库存数量
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int CellCount {get;set;}

        /// <summary>
        /// Desc:完成数量/实际盘点数量
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int FinishedCount {get;set;}

           /// <summary>
           /// Desc:仓位id
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? TouchTimes {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? TouchStartDate {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? TouchEndDate {get;set;}

        /// <summary>
        /// Desc: 当前字段意思为物资系统库存明细id
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int LoopTimes {get;set;}

        /// <summary>
        /// Desc:关联的盘点计划我们的id
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int PriorityLevel {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? ExecDate {get;set;}

        /// <summary>
        /// Desc:盘点结果：正常、盘亏、盘盈
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string Remark {get;set;}

        /// <summary>
        /// Desc:监盘人id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? CreateUserId {get;set;}

        /// <summary>
        /// Desc:监盘人名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string CreateUserName {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           public DateTime CreateDate {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? ModifyUserId {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string ModifyUserName {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? ModifyDate {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? SubmitDate {get;set;}

        /// <summary>
        /// Desc:提交人id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? SubmitUserId {get;set;}

        /// <summary>
        /// Desc:提交人名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string SubmitUserName {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? AuditDate {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? AuditUserId {get;set;}

        /// <summary>
        /// Desc:盘点单号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string AuditUserName {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string deptName {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string materialCode {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string materialNorms {get;set;}

        /// <summary>
        /// Desc:盘点计划id
        /// Default:CONVERT([bigint],(0))
        /// Nullable:False
        /// </summary>           
        public long planId {get;set;}

        /// <summary>
        /// Desc:质量状态1.良好，2.损坏，3.报废
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? qualityStatus {get;set;}

        /// <summary>
        /// Desc: 盈亏数量
        /// Default:
        /// Nullable:True
        /// </summary>           
        public decimal? MyProperty {get;set;}

        [SugarColumn(IsIgnore = true)]
        public bool isChecked { get; set; } = false;

    }
}
